/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * HintsEditor.java
 *
 * Created on 2011-10-17, 21:40:04
 */
package pobicos;

import java.awt.FlowLayout;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.util.Collection;
import javax.swing.JPanel;


/**
 *
 * @author User
 */
public class HintsEditor extends javax.swing.JFrame {

    /** Creates new form HintsEditor */
    public HintsEditor() {
        initComponents();
        
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        
        satisfactionDegreeButtonGroup.add(satisfactionCase1);
        satisfactionDegreeButtonGroup.add(satisfactionCase2);
        satisfactionDegreeButtonGroup.add(satisfactionCase3);

        satisfactionPasteButtonGroup.add(satisfactionPasteH);
        satisfactionPasteButtonGroup.add(satisfactionPasteL);
        satisfactionPasteButtonGroup.add(satisfactionPasteM);

        EssentialityButtonGroup.add(EssentialNoButton);
        EssentialityButtonGroup.add(EssentialYesButton);

        ImportanceButtonGroup.add(ImportanceHighButton);
        ImportanceButtonGroup.add(ImportanceLowButton);
        ImportanceButtonGroup.add(ImportanceMediumButton);

        AgentModeButtonGroup.add(SingleModeButton);
        AgentModeButtonGroup.add(MultipleModeButton);

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        satisfactionDegreeButtonGroup = new javax.swing.ButtonGroup();
        satisfactionPasteButtonGroup = new javax.swing.ButtonGroup();
        EssentialityButtonGroup = new javax.swing.ButtonGroup();
        ImportanceButtonGroup = new javax.swing.ButtonGroup();
        AgentModeButtonGroup = new javax.swing.ButtonGroup();
        CloseButton = new javax.swing.JButton();
        setParametersButton = new javax.swing.JButton();
        HintsEditorPanel = new javax.swing.JPanel();
        ImportanceLowButton = new javax.swing.JRadioButton();
        ImportanceMediumButton = new javax.swing.JRadioButton();
        ImportanceHighButton = new javax.swing.JRadioButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        EssentialYesButton = new javax.swing.JRadioButton();
        EssentialNoButton = new javax.swing.JRadioButton();
        MultipleModeButton = new javax.swing.JRadioButton();
        SingleModeButton = new javax.swing.JRadioButton();
        EssentialityLabel = new javax.swing.JLabel();
        AgnetModeLabel = new javax.swing.JLabel();
        SatiscationDegreeLabel = new javax.swing.JLabel();
        satisfactionCase1 = new javax.swing.JRadioButton();
        satisfactionCase2 = new javax.swing.JRadioButton();
        satisfactionCase3 = new javax.swing.JRadioButton();
        SatiscationPasteLabel = new javax.swing.JLabel();
        satisfactionPasteL = new javax.swing.JRadioButton();
        satisfactionPasteM = new javax.swing.JRadioButton();
        satisfactionPasteH = new javax.swing.JRadioButton();
        MaxiHapLevelLabel = new javax.swing.JLabel();
        MaxHappLevelTextField = new javax.swing.JTextField();
        jTextField2 = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(pobicos.AdaptSysApp.class).getContext().getResourceMap(HintsEditor.class);
        CloseButton.setText(resourceMap.getString("CloseButton.text")); // NOI18N
        CloseButton.setName("CloseButton"); // NOI18N
        CloseButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                CloseButtonMousePressed(evt);
            }
        });

        setParametersButton.setText(resourceMap.getString("setParametersButton.text")); // NOI18N
        setParametersButton.setName("setParametersButton"); // NOI18N

        HintsEditorPanel.setName("HintsEditorPanel"); // NOI18N

        ImportanceLowButton.setText(resourceMap.getString("ImportanceLowButton.text")); // NOI18N
        ImportanceLowButton.setName("ImportanceLowButton"); // NOI18N

        ImportanceMediumButton.setText(resourceMap.getString("ImportanceMediumButton.text")); // NOI18N
        ImportanceMediumButton.setName("ImportanceMediumButton"); // NOI18N

        ImportanceHighButton.setText(resourceMap.getString("ImportanceHighButton.text")); // NOI18N
        ImportanceHighButton.setName("ImportanceHighButton"); // NOI18N

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jLabel2.setName("jLabel2"); // NOI18N

        EssentialYesButton.setText(resourceMap.getString("EssentialYesButton.text")); // NOI18N
        EssentialYesButton.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);
        EssentialYesButton.setName("EssentialYesButton"); // NOI18N

        EssentialNoButton.setText(resourceMap.getString("EssentialNoButton.text")); // NOI18N
        EssentialNoButton.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);
        EssentialNoButton.setName("EssentialNoButton"); // NOI18N

        MultipleModeButton.setText(resourceMap.getString("MultipleModeButton.text")); // NOI18N
        MultipleModeButton.setDoubleBuffered(true);
        MultipleModeButton.setName("MultipleModeButton"); // NOI18N

        SingleModeButton.setText(resourceMap.getString("SingleModeButton.text")); // NOI18N
        SingleModeButton.setName("SingleModeButton"); // NOI18N

        EssentialityLabel.setText(resourceMap.getString("EssentialityLabel.text")); // NOI18N
        EssentialityLabel.setName("EssentialityLabel"); // NOI18N

        AgnetModeLabel.setText(resourceMap.getString("AgnetModeLabel.text")); // NOI18N
        AgnetModeLabel.setName("AgnetModeLabel"); // NOI18N

        SatiscationDegreeLabel.setText(resourceMap.getString("SatiscationDegreeLabel.text")); // NOI18N
        SatiscationDegreeLabel.setName("SatiscationDegreeLabel"); // NOI18N

        satisfactionCase1.setText(resourceMap.getString("satisfactionCase1.text")); // NOI18N
        satisfactionCase1.setName("satisfactionCase1"); // NOI18N

        satisfactionCase2.setText(resourceMap.getString("satisfactionCase2.text")); // NOI18N
        satisfactionCase2.setName("satisfactionCase2"); // NOI18N

        satisfactionCase3.setText(resourceMap.getString("satisfactionCase3.text")); // NOI18N
        satisfactionCase3.setName("satisfactionCase3"); // NOI18N

        SatiscationPasteLabel.setText(resourceMap.getString("SatiscationPasteLabel.text")); // NOI18N
        SatiscationPasteLabel.setName("SatiscationPasteLabel"); // NOI18N

        satisfactionPasteL.setText(resourceMap.getString("satisfactionPasteL.text")); // NOI18N
        satisfactionPasteL.setName("satisfactionPasteL"); // NOI18N

        satisfactionPasteM.setText(resourceMap.getString("satisfactionPasteM.text")); // NOI18N
        satisfactionPasteM.setName("satisfactionPasteM"); // NOI18N

        satisfactionPasteH.setText(resourceMap.getString("satisfactionPasteH.text")); // NOI18N
        satisfactionPasteH.setName("satisfactionPasteH"); // NOI18N

        MaxiHapLevelLabel.setText(resourceMap.getString("MaxiHapLevelLabel.text")); // NOI18N
        MaxiHapLevelLabel.setName("MaxiHapLevelLabel"); // NOI18N

        MaxHappLevelTextField.setText(resourceMap.getString("MaxHappLevelTextField.text")); // NOI18N
        MaxHappLevelTextField.setName("MaxHappLevelTextField"); // NOI18N

        jTextField2.setText(resourceMap.getString("jTextField2.text")); // NOI18N
        jTextField2.setName("jTextField2"); // NOI18N

        javax.swing.GroupLayout HintsEditorPanelLayout = new javax.swing.GroupLayout(HintsEditorPanel);
        HintsEditorPanel.setLayout(HintsEditorPanelLayout);
        HintsEditorPanelLayout.setHorizontalGroup(
            HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(HintsEditorPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(HintsEditorPanelLayout.createSequentialGroup()
                        .addComponent(SatiscationPasteLabel)
                        .addGap(18, 18, 18)
                        .addComponent(satisfactionPasteM)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(satisfactionPasteL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(satisfactionPasteH))
                    .addGroup(HintsEditorPanelLayout.createSequentialGroup()
                        .addGroup(HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1)
                            .addComponent(AgnetModeLabel))
                        .addGap(18, 18, 18)
                        .addGroup(HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(HintsEditorPanelLayout.createSequentialGroup()
                                .addComponent(SingleModeButton)
                                .addGap(6, 6, 6)
                                .addComponent(MultipleModeButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(HintsEditorPanelLayout.createSequentialGroup()
                                .addComponent(EssentialNoButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(EssentialYesButton))
                            .addGroup(HintsEditorPanelLayout.createSequentialGroup()
                                .addComponent(ImportanceLowButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(ImportanceMediumButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(ImportanceHighButton))))
                    .addComponent(EssentialityLabel)
                    .addGroup(HintsEditorPanelLayout.createSequentialGroup()
                        .addComponent(SatiscationDegreeLabel)
                        .addGap(18, 18, 18)
                        .addComponent(satisfactionCase1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(satisfactionCase2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(satisfactionCase3))
                    .addGroup(HintsEditorPanelLayout.createSequentialGroup()
                        .addComponent(MaxiHapLevelLabel)
                        .addGap(18, 18, 18)
                        .addComponent(MaxHappLevelTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        HintsEditorPanelLayout.setVerticalGroup(
            HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(HintsEditorPanelLayout.createSequentialGroup()
                .addGap(17, 17, 17)
                .addGroup(HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(AgnetModeLabel)
                    .addComponent(MultipleModeButton)
                    .addComponent(SingleModeButton)
                    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(ImportanceLowButton)
                    .addComponent(ImportanceMediumButton)
                    .addComponent(ImportanceHighButton))
                .addGap(3, 3, 3)
                .addGroup(HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(HintsEditorPanelLayout.createSequentialGroup()
                        .addGap(71, 71, 71)
                        .addComponent(jLabel2))
                    .addGroup(HintsEditorPanelLayout.createSequentialGroup()
                        .addGap(4, 4, 4)
                        .addGroup(HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(EssentialityLabel)
                            .addComponent(EssentialNoButton)
                            .addComponent(EssentialYesButton))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(SatiscationDegreeLabel)
                            .addComponent(satisfactionCase1)
                            .addComponent(satisfactionCase2)
                            .addComponent(satisfactionCase3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(SatiscationPasteLabel)
                            .addComponent(satisfactionPasteM)
                            .addComponent(satisfactionPasteL)
                            .addComponent(satisfactionPasteH))))
                .addGap(18, 18, 18)
                .addGroup(HintsEditorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(MaxiHapLevelLabel)
                    .addComponent(MaxHappLevelTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(setParametersButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 156, Short.MAX_VALUE)
                        .addComponent(CloseButton)
                        .addContainerGap())
                    .addComponent(HintsEditorPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(HintsEditorPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(setParametersButton)
                    .addComponent(CloseButton))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void CloseButtonMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_CloseButtonMousePressed
        dispose();
}//GEN-LAST:event_CloseButtonMousePressed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup AgentModeButtonGroup;
    private javax.swing.JLabel AgnetModeLabel;
    private javax.swing.JButton CloseButton;
    private javax.swing.JRadioButton EssentialNoButton;
    private javax.swing.JRadioButton EssentialYesButton;
    private javax.swing.ButtonGroup EssentialityButtonGroup;
    private javax.swing.JLabel EssentialityLabel;
    private javax.swing.JPanel HintsEditorPanel;
    private javax.swing.ButtonGroup ImportanceButtonGroup;
    private javax.swing.JRadioButton ImportanceHighButton;
    private javax.swing.JRadioButton ImportanceLowButton;
    private javax.swing.JRadioButton ImportanceMediumButton;
    private javax.swing.JTextField MaxHappLevelTextField;
    private javax.swing.JLabel MaxiHapLevelLabel;
    private javax.swing.JRadioButton MultipleModeButton;
    private javax.swing.JLabel SatiscationDegreeLabel;
    private javax.swing.JLabel SatiscationPasteLabel;
    private javax.swing.JRadioButton SingleModeButton;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JRadioButton satisfactionCase1;
    private javax.swing.JRadioButton satisfactionCase2;
    private javax.swing.JRadioButton satisfactionCase3;
    private javax.swing.ButtonGroup satisfactionDegreeButtonGroup;
    private javax.swing.ButtonGroup satisfactionPasteButtonGroup;
    private javax.swing.JRadioButton satisfactionPasteH;
    private javax.swing.JRadioButton satisfactionPasteL;
    private javax.swing.JRadioButton satisfactionPasteM;
    private javax.swing.JButton setParametersButton;
    // End of variables declaration//GEN-END:variables
}
